package com.googlecode.napp.pechhulp;
/*
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.net.InetAddress;
import java.net.Socket;
import java.net.UnknownHostException;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;


public class listener {

    //Handler h;

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        final EditText eText = (EditText) findViewById(R.id.address);
        final TextView tView = (TextView) findViewById(R.id.pagetext);

        final Button button = (Button) findViewById(R.id.ButtonGo);
        button.setOnClickListener(new Button.OnClickListener() {
            public void onClick(View v) {
                try {
                        Log.v("Tcp","Clicked the button");
                        Socket s = new Socket("92.254.58.21",4447);
                        Log.v("Tcp","Got the Socket address");
                        OutputStream out = s.getOutputStream();
                        PrintWriter output = new PrintWriter(out);
                        output.println("Hello Android!");
                        out.close();

                } catch (UnknownHostException e) {
                    tView.setText(e.toString());
                    Log.v("Tcp",e.toString());
                } catch (IOException e) {
                    tView.setText(e.toString());
                    Log.v("Tcp",e.toString());
                }catch (Exception e) {
                    tView.setText(e.toString());

                } 
            }
        });        
    }
}
*/
